#include "tablaitemdelegate.h"

TablaItemDelegate::TablaItemDelegate(Formateador* formateador, QObject *parent)
    : QStyledItemDelegate(parent)
{
    this->formateador = formateador;
}

QString TablaItemDelegate::displayText(const QVariant& value, const QLocale& locale) const
{
    Q_UNUSED(locale);
    return formateador->formatear(value);
}